While the majority of gene histories found in a clade of organisms are expected to be generated by a common process (e.g. the coalescent process), it is well-known that numerous other coexisting processes (e.g. horizontal gene transfers, gene duplication and subsequent neofunctionalization) will cause some genes to exhibit a history quite distinct from those of the majority of genes. Such "outlying" gene trees are considered to be biologically interesting and identifying these genes has become an important problem in phylogenetics. In this paper we propose and implement, kdetrees, a nonparametric method of estimating distributions of phylogenetic trees, with the goal of identifying trees which are significantly different from the rest of the trees in the sample. Our approach mimics the common statistical technique of kernel density estimation, using tree distances to define kernels. In contrast to parametric models, such as the coalescent, nonparametric approaches avoid the problem of model mis-specification, which leads to potentially unreliable results. Our method demonstrated significantly faster computational time, while suffering only a small penalty to classification accuracy, as compared to a recently published method. We also applied our method to a data set of Apicomplexa genes, as well as a set of Epichlo\"e genes, fungi symbiotic with grasses. In the case of the Apicomlexa, kdetrees identified several unreliable sequences which had escaped previous detection, as well as gene indepentenly reported as a probably case of horizontal gene transfer. Our method for estimating tree distributions is implemented as the R package, kdetrees, and is available for download from CRAN.